#ifndef MYDIALOG_H
#define MYDIALOG_H

#include <QDialog>
#include <QtCore>
#include <user.h>

namespace Ui {
    class MyDialog;
}

class MyDialog : public QDialog
{
    Q_OBJECT

public:
    int getLeft(); // left slider value
    int getRight(); // right slider value
    MyDialog(QWidget *parent, user *currentuser);
    ~MyDialog();
    void closeEvent(QCloseEvent *event);


private slots:
    void on_LeftSlider_valueChanged(int value); //handler for left slider
    void on_RightSlider_valueChanged(int value); // handler for right slider
    void on_horizontalSlider_valueChanged(int value);
    void on_startButton_clicked();
    void on_pauseButton_clicked();
    void on_stopButton_clicked();
    void fromTheOtherSide(int);
    void on_scoreCheckBox_toggled(bool checked);
    void scoreChange(int, int);
    void isOnePlayer(bool);

private:
    Ui::MyDialog *ui;
    user *personal;

signals:
    void showScore(bool);
    void buttonPushed(int);
    void setGameTime(int);
    void dyingCall();

};

#endif // MYDIALOG_H
